package com.caption.mq.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;


/**
 * @description: TODO
 * @author: 码农
 * @date: 2022-01-16 17:29:54
 */
@EnableConfigurationProperties(MqProperties.class)
public class BaseMqAutoConfiguration  implements ApplicationContextAware {

    protected ApplicationContext applicationContext;
    @Autowired
    protected MqProperties mqProperties;


    public void setMqProperties(MqProperties mqProperties) {
        this.mqProperties = mqProperties;
    }

    public ApplicationContext getApplicationContext() {
        return applicationContext;
    }

    public void setApplicationContext(ApplicationContext applicationContext) {
        this.applicationContext = applicationContext;
    }

}
